package io.renren.modules.sys.back.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.back.dao.BtRenwuInfoDao;
import io.renren.modules.sys.back.entity.BtRenwuInfoEntity;
import io.renren.modules.sys.back.service.BtRenwuInfoService;

@Service("btRenwuInfoService")
public class BtRenwuInfoServiceImpl extends ServiceImpl<BtRenwuInfoDao, BtRenwuInfoEntity> implements BtRenwuInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BtRenwuInfoEntity> page = this.selectPage(
                new Query<BtRenwuInfoEntity>(params).getPage(),
                new EntityWrapper<BtRenwuInfoEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public List<Map<String,Object>> getLebSortMap(){
        return baseMapper.getLebSortMap();
    }
}
